ngl: Handle negative scales
authorMatthias Clasen <mclasen@redhat.com>
Thu, 15 Jul 2021 20:40:13 +0000 (16:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 15 Jul 2021 20:40:13 +0000 (16:40 -0400)
commit1c90bb522e7e722bcac4bd391c1631efe9eef58a
treefdf6a6891cbf17ebd7a7e6e5781b04b1c65813f3
parentb70b058b66fcbfbd453ec5a705db062c2dd5d2c1
ngl: Handle negative scales

Scale factors can be negative, but we were not
looking out for that, triggering an assertion when
trying to create a render target with negative
width of height. Avoid that.

Fixes: #4096
gsk/ngl/gsknglrenderjob.c